import { StarFilled } from '@ant-design/icons';
import {
  FavoriteSvgComponent,
  MaterialCategorySvgComponent,
  MaterialLibraryLockedSvgComponent,
  MaterialLibrarySvgComponent,
} from '../../icons';
import MaterialIcon from './MaterialIcon';

export const initialTreeData = [
  {
    title: '收藏夹',
    icon: <FavoriteSvgComponent />,
    key: 'fav',
    children: [
      {
        title: <span>铝合金2024</span>,
        icon: <MaterialIcon color='#e0e0e0' />,
        key: 'fav-al2024',
        isLeaf: true,
        favorite: true,
      },
    ],
  },
  {
    title: <span>PowerCAD材料库</span>,
    icon: <MaterialLibraryLockedSvgComponent />,
    key: 'lib',
    children: [
      {
        title: <span>金属</span>,
        icon: <MaterialCategorySvgComponent />,
        key: 'lib-metal',
        children: [
          {
            title: <span>不锈钢AISI 304</span>,
            icon: <MaterialIcon color='#b0b0b0' />,
            key: 'metal-ss304',
            isLeaf: true,
            favorite: false,
          },
          {
            title: <span>钢AISI 1045</span>,
            icon: <MaterialIcon color='#b0b0b0' />,
            key: 'metal-steel1045',
            isLeaf: true,
            favorite: false,
          },
          {
            title: <span>黄铜</span>,
            icon: <MaterialIcon color='#e6c200' />,
            key: 'metal-brass',
            isLeaf: true,
            favorite: false,
          },
          {
            title: <span>金</span>,
            icon: <MaterialIcon color='#ffe066' />,
            key: 'metal-gold',
            isLeaf: true,
            favorite: false,
          },
          {
            title: <span>铝</span>,
            icon: <MaterialIcon color='#e0e0e0' />,
            key: 'metal-al',
            isLeaf: true,
            favorite: false,
          },
          {
            title: (
              <span>
                铝合金2024
                <StarFilled style={{ color: '#faad14', marginLeft: 4 }} />
              </span>
            ),
            icon: <MaterialIcon color='#e0e0e0' />,
            key: 'metal-al2024',
            isLeaf: true,
            favorite: true,
          },
          {
            title: <span>铝合金7075</span>,
            icon: <MaterialIcon color='#e0e0e0' />,
            key: 'metal-al7075',
            isLeaf: true,
            favorite: false,
          },
          {
            title: <span>钛合金Ti-5Al-2.5Sn</span>,
            icon: <MaterialIcon color='#b0b0b0' />,
            key: 'metal-ti',
            isLeaf: true,
            favorite: false,
          },
          {
            title: <span>铁</span>,
            icon: <MaterialIcon color='#b0b0b0' />,
            key: 'metal-fe',
            isLeaf: true,
            favorite: false,
          },
        ],
      },
    ],
  },
  {
    title: <span>自定义材料库.1</span>,
    icon: <MaterialLibrarySvgComponent />,
    key: 'custom-lib-1',
    children: [
      {
        title: <span>新建材料.1</span>,
        icon: <MaterialIcon color='#e6c200' />,
        key: 'custom-mat-1',
        isLeaf: true,
        favorite: false,
        editable: true,
      },
      {
        title: <span>新建材料.2</span>,
        icon: <MaterialIcon color='#e6c200' />,
        key: 'custom-mat-2',
        isLeaf: true,
        favorite: false,
        editable: true,
      },
    ],
  },
];
